#!/bin/bash

API=29
PREFIX=`pwd`/faac-android/arm64-v8a
export NDK=/home/yfux/Downloads/android-ndk-r20b
TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
export CC=$TOOLCHAIN/bin/aarch64-linux-android$API-clang
export CFLAGS="-O0 -g -fPIC"

./configure --prefix=$PREFIX --host=aarch64-linux-android --with-pic 

make clean
make install

